﻿@ModelType Soldata.Azox.LoginModel

@Code
    ViewBag.Title = "Авторизация"
End Code

<section class="form-signin">
    <h2 class="form-signin-heading">@ViewBag.Title</h2>

    @Using Html.BeginForm(New With {.ReturnUrl = ViewBag.ReturnUrl})
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(True)

        @Html.TextBoxFor(Function(m) m.UserName, New With {.class = "input-block-level", .placeholder = "Имя пользователя"})
        @Html.ValidationMessageFor(Function(m) m.UserName, "*")

        @Html.PasswordFor(Function(m) m.Password, New With {.class = "input-block-level", .placeholder = "Пароль"})
        @Html.ValidationMessageFor(Function(m) m.Password, "*")
    
        @<label class="checkbox">
            @Html.CheckBoxFor(Function(m) m.RememberMe)
            @Html.DisplayNameFor(Function(m) m.RememberMe)
        </label>
    
        @<button class="btn" type="submit">Войти</button>
    End Using
</section>

@Section Scripts
    @Scripts.Render("~/bundles/jqueryval")
End Section
